class Person:
    def __init__(self,name,sex,age,rest_bill,phone_brand,phone_battery_capacity
                ,phone_screen_size,phone_use_time,points_owned):
        self.name = name
        self.sex = sex
        self.age = age
        self.rest_bill = rest_bill
        self.phone_brand = phone_brand
        self.phone_battery_capacity = phone_battery_capacity
        self.phone_screen_size = phone_screen_size
        self.phone_use_time = phone_use_time
        self.points_owned = points_owned

    def send_new(self,info):
        print(f"发送的信息为{info}")

    def call(self,telephone,time_span):
        if telephone is None :
            print("您好，您拨打的号码为空")
        elif self.rest_bill < 1:
            print("您好，您的手机已欠费")
        else:
            bill = 0
            print("您好，您已打通")
            if time_span >= 0 and time_span < 10:
                self.rest_bill -= 1*time_span
                self.points_owned += 15*time_span
                bill = 1*time_span
            elif time_span >=10 and time_span <20:
                self.rest_bill -= 0.8 * time_span
                self.points_owned += 39 * time_span
                bill = 0.8 * time_span
            else:
                self.rest_bill -= 0.65 * time_span
                self.points_owned += 48 * time_span
                bill = 0.65 * time_span
        return bill